<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/admin/circle/addcirclemessage" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>

<body>

  <div class="page">
    <div class="page-hd">
      <if condition="isset($res)">
        <h1>{$Think.lang.update}{$Think.lang.circle}</h1>
        <else />
        <h1>新增播报信息</h1>
      </if>
    </div>
    <div class="form">
      <form action="{:URL('admin/Circle/doaddCircleMessage')}" id="J_form" method="post" enctype="multipart/form-data">
        <dl class="kv">
          <input type="hidden" value="{$inseupdate}" name="inseupdate" />
          <dt>
            <label>商圈名称：</label>
          </dt>
          <dd>
	        <select id="circleid" name="circleid">
	          <option value="0_公开">公开</option>
	          <volist name="circlelist" id="vo">
	            <option value="{$vo['circleid']}_{$vo['circlename']}" >{$vo['circlename']}</option>
	          </volist>
	        </select>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>播报内容：</label>
          </dt>
          <dd>
            <textarea rows="10" cols="60" name="content" value="{$content}" required></textarea>
            <span class="required">*</span>
            <div class="kv-error"></div>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>建立人：</label>
          </dt>
          <dd>
            用户ID:
            <input class="input-text" style="width:100px;" type="text" name="userid" value="{$userid}" readonly="readonly" />
            &nbsp;&nbsp;用户名称:
            <input class="input-text" style="width:100px;" type="text" name="username" value="{$username}" readonly="readonly" />
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>地理位置：</label>
          </dt>
          <dd>
           	 经度：<input class="input-text" style="width:50px;" type="text" name="longitude" value="{$longitude}" />
           	 纬度：<input class="input-text" style="width:50px;" type="text" name="latitude" value="{$latitude}" />
           	 名称：<input class="input-text" type="text" name="locname" value="{$locname}" />
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>播报图片：</label>
          </dt>
          <dd>
          	<div id="J_imageUpload">
              <volist name="pictures" id="pictures">
                <input type="text" name="imageurl[]" value="{$pictures.imageurl}" class="input-text">&nbsp;&nbsp;图片描述:
                <input type="text" name="imagedes[]" class="input-text" value="{$pictures.des}">
                <br/>
              </volist>
            </div>
            <input type="button" class="btn" value="选择图片" id="J_selectPic" />
          </dd>
        </dl>
        <div class="actions">
          <if condition="isset($res)">
            <input class="btn btn-y" type="submit" value="{$Think.lang.update}播报" />
            <else />
            <input class="btn btn-y" type="submit" value="{$Think.lang.add}播报信息" />
          </if>
          <a href="{:URL('admin/Circle/circlemessagelist')}" class="btn btn-n">{$Think.lang.cancel}</a>
        </div>
      </form>
    </div>

  </div>
</body>

</html>
